﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureGames.Domain.Models
{
    public class NotificationMessage
    {
        public Guid ID { get; set; }
        public string PlayerID { get; set; }
        public int GameDefinitionID { get; set; }
        public Guid BoardID { get; set; }
        public DateTime CreatedDate { get; set; }
        public DateTime LastUpdatedDate { get; set; }
        public string State { get; set; }
        public string Message { get; set; }
        public object Data { get; set; }
        public string SenderID { get; set; }

        public NotificationMessage(Model.Notification message)
        {
            ID = message.ID;
            PlayerID = message.PlayerID;
            GameDefinitionID = message.GameDefinitionID;
            CreatedDate = message.CreatedDate;
            State = message.State.ToString();
            Message = message.Message;
            Data = message.Data;
            BoardID = message.BoardID;
            LastUpdatedDate = message.LastUpdatedDate;
            SenderID = message.SenderID;
        }
    }
}
